import { createGlobalStyle } from 'styled-components';
import sprite_01 from '../img/sprite_01.png';
import sprite_02 from '../img/sprite_02.png';
import sprite_cover from '../img/sprite_cover.png';
import sprite_icon from '../img/sprite_icon.png';
import sprite_icon2 from '../img/sprite_icon2.png';
import sprite_button from '../img/sprite_button.png';
import sprite_button2 from '../img/sprite_button2.png';
import sprite_table from '../img/sprite_table.png';
import my_music from '../img/mymusic.png';
import not_login from '../img/notlogin.jpg';
import wrap3 from '../img/wrap3.png';
import wrap1 from '../img/wrap1.png';
import tab from '../img/tab.png';
import logo from '../img/logo.png';
import music from '../img/music.svg';
import date from '../img/date.png';
import icon from '../img/icon.png';
import icon2 from '../img/icon2.png';
import download from '../img/sprite_download.png';
import playbar_sprite from '../img/playbar_sprite.png';
import recommended_bg from '../img/recommend-top-bg.png';
import sprite from '../img/sprite.png';
import audio_quality from '../img/audio-quality.png';
import foot_enter from '../img/foot_enter_new2.png';
import rank_ctrl from '../img/rank_ctrl.png';
import sltlyr from '../img/sltlyr.png';
import playeList from '../img/playlist_bg.png';
import playerListIcon from '../img/playlist_icon.png';
import album from '../img/album-bg.png';

export const GlobalStyles = createGlobalStyle`
body,
html,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
li,
dl,
dt,
dd,
header,
menu,
section,
p,
input,
td,
th,
ins {
  padding: 0;
  margin: 0;
}

ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #666;
}

a:hover {
  color: #666;
  text-decoration: underline;
}

i,
em {
  font-style: normal;
}

input,
textarea,
button,
select,
a {
  outline: none;
  border: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img {
  border: none;
  vertical-align: middle;
}

/* 全局样式 */
body,
textarea,
select,
input,
button {
  font-size: 12px;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f5f5;
}

.text-nowrap {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.w1100 {
  width: 1100px;
  margin: 0 auto;
}

.w980 {
  width: 980px;
  margin: 0 auto;
}

.text-indent {
  text-indent: -9999px;
}

.inline-block {
  display: inline-block;
}
.foot_enter {
  background: url(${foot_enter}) no-repeat 0 9999px;
}
.sltlyr {
  background: url(${sltlyr}) no-repeat 0 9999px;
}
.rank_ctrl {
  background: url(${rank_ctrl}) no-repeat 0 9999px;
}
.sprite {
  background: url(${sprite}) no-repeat 0 9999px;
}
.sprite_01 {
  background: url(${sprite_01}) no-repeat 0 9999px;
}

.sprite_02 {
  background: url(${sprite_02}) no-repeat 0 9999px;
}
.recommended_bg {
  background: url(${recommended_bg}) no-repeat 0 9999px;
}
.sprite_cover {
  background: url(${sprite_cover}) no-repeat 0 9999px;
}
.sprite_download {
  background: url(${download}) no-repeat 0 9999px;
}
.sprite_icon {
  background: url(${sprite_icon}) no-repeat 0 9999px;
}

.sprite_icon2 {
  background: url(${sprite_icon2}) no-repeat 0 9999px;
}
.sprite_icon3 {
  background: url(${icon2}) no-repeat 0 9999px;
}
.sprite_button {
  background: url(${sprite_button}) no-repeat 0 9999px;
}

.sprite_button2 {
  background: url(${sprite_button2}) no-repeat 0 9999px;
}

.sprite_table {
  background: url(${sprite_table}) no-repeat 0 9999px;
}

.my_music {
  background: url(${my_music}) no-repeat 0 9999px;
}

.not-login {
  background: url(${not_login}) no-repeat 0 9999px;
}
.audio_quality{
  background: url(${audio_quality}) no-repeat 0 9999px;
}
.image_cover {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  text-indent: -9999px;
  background: url(${sprite_cover}) no-repeat -145px -57px;
}

/* .cover_all {
  background: url(${sprite_cover}) no-repeat  0 9999px;
  
} */

.sprite_player {
  background: url(${playbar_sprite}) no-repeat 0 9999px;
}
.sprite_playerList {
  background: url(${playeList}) no-repeat 0 9999px;
}
.sprite_playerList_icon {
  background: url(${playerListIcon}) no-repeat 0 9999px;
}
.ant-message {
  bottom : 100px !important;
  top : auto !important;
  .ant-message-notice-wrapper .ant-message-notice .ant-message-notice-content {
    background-color: rgba(0, 0, 0, 0.5) !important;
    color: #f5f5f5;
  }
}

.wrap-bg3 {
  background: url(${wrap3}) repeat-y center 0;
}
.album-bg {
  background: url(${album}) no-repeat;
}
.wrap-bg1 {
  background: url(${wrap1}) repeat-y center 0;
}
.no-link {
  pointer-events: none;
}

.m-tab {
  background: url(${tab}) no-repeat 0 9999px;
}

.theme-logo {
  background: url(${logo}) repeat 0 9999px;
  /* background: url(${music}) repeat 0 9999px;; */
}

.new-logo {
  background: url(${music}) no-repeat;
  background-size: contain;
}

.date {
  background: url(${date}) no-repeat 0 9999px;
}



.icons {
  background: url(${icon}) no-repeat 0 9999px;
}

main.content {
  width: 980px;
  min-height: 700px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #d3d3d3;
  border-width: 0 1px;
}

.icon-small {
  background: url(${icon2}) no-repeat 0 9999px;
}
`;
